import 'package:intl/intl.dart';
import 'package:intl/date_symbol_data_local.dart';

void main() async {
  await initializeDateFormatting("zh");
  var str = "Sun, 03 Feb 2019 17:19:23 +0800";
  print(str);
  var dateFormat = DateFormat("EEE, d MMM yyyy hh:mm:ss");
  print(dateFormat.parseUtc(str));
  // var now = dateFormat.format(DateTime.now());
  // print(now);
}
